<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
	<%@ page session="false" %>
<!DOCTYPE html>
<html>
<head>
<title>Application Page</title>
<script src="<c:url value="/resources/js/jquery.js" />"></script>
<script src="<c:url value="/resources/js/jquery-1.7.2.min.js" />"></script>
<script src="<c:url value="/resources/js/jquery-ui-1.8.21.custom.min.js" />"></script>
<script src="<c:url value="/resources/js/calendar.rc4.js" />"></script>
</head>
  
<body>
<script>
$(function() {
$( "#startDate" ).datepicker();
});

$(function() {
	$( "#endDate" ).datepicker();
	});
</script>

	<h2>Resource Information</h2>

	<form method="POST" action="GetDetail">
		
		<table>
			<tr>
				<td><label>Role Name :
				<span><select name="rolename" id="rolename">
				<option value="" selected="selected" >Select</option>					
					  <c:forEach items="${role}" var="rolelist">
					  
					  <option value="${rolelist.jobStage}" >${rolelist.roleName }</option>>
                      </c:forEach> 
				     </select></span></label>
                </td>
			
				<td><label>Skill Name :
				<span><select name="skilllist" id="skilllist">	
				<option value="" selected="selected" >Select</option>					
					  <c:forEach items="${skill}" var="skilllist">
					  <option value="${skilllist.skillId}" >${skilllist.skillDescription }</option>>
                      </c:forEach> 
				     </select></span></label>
                </td>
			</tr>	

           <tr>
           
	<td><label>From Date</label><input type="text" id="startDate"
					name="From-Date" size="12" value=""
					 style="margin-right: 5px;" /></td>
   
	<td><label>To Date</label><input type="text" id="endDate"
					name="End-Date" class="customTextBox" size="12" value=""
					 style="margin-right: 5px;" /></td>
            </tr>
			<tr>
				<td colspan="3" align="center"><input type="submit"  name="submit"  value="submit" /></td>
			</tr>
		</table>
	</form>
	
	<table>
	<tr>
	<td>Signum</td>
	<td>FirstName</td>
	<td>LastName</td>
	<td>LineManagerName</td>
	</tr>
	</table>
	<c:forEach items="${result}" var="resultList">
	<c:set var="displayResult" value="${resultList}"></c:set>
	<table>
	<tr>	
	<td>${displayResult.signum}</td>
	<td>${displayResult.firstName}</td>
	<td>${displayResult.lastName}</td>
	<td>${displayResult.lineManagerName}</td>
	
	</tr>
	</table>
	</c:forEach>


</body>
</html>